﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Purchase.Domain;
using W.Purchase.Repository.Interface;

namespace W.Purchase.Repository.Impl
{
    public class SaleReturnsRepository : BaseRepository<SaleReturns>, ISaleReturnsReposiotry
    {
        public SaleReturnsRepository(EFCoreDbContext db) : base(db)
        {
        }
        public async Task<int> AddAsync(SaleReturns saleReturns)
        {
            return await base.AddAsync(saleReturns);
        }

        public async Task<List<SaleReturns>> GetAllAsaync()
        {
            return await base.GetAllAsaync();
        }

        public async Task<List<SaleReturns>> GetAsync(Expression<Func<SaleReturns, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<int> Update(SaleReturns saleReturns)
        {
            return await base.Update(saleReturns);
        }

        public async Task<int> UpdateRangeAsync(List<SaleReturns> t)
        {
            return await base.UpdateRangeAsync(t);
        }
    }
}
